package com.stenio.fancat.mapper.shop;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stenio.fancat.domain.shop.FcCategory;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FcCategoryMapper extends BaseMapper<FcCategory> {
    void updateAll(FcCategory category);
    int deleteById(Integer id);
    List<FcCategory> findByParentId(Integer parentId);
    FcCategory findById(Integer parentId);
    List<FcCategory> findSecondaryAll();
    FcCategory selectLastOne();
}
